#ifndef NESTS_H_
#define NESTS_H_

#include "cocos2d.h"
#include "Utils.h"
#include "Constants.h"

using namespace cocos2d;

class Nests: public cocos2d::CCSprite {
public:
	Nests();
	static Nests* CreateNestByFileName(const char* filename);
	void Start();
	void Stop();
	void SetSPeedandWith(float speed, float width);
	int getId();
	void setposition(float y);
	void setBehindNest(Nests* nest);
	void movedown(float delta);
	float moveAngle;

private:
	static float fixedAngle;
	float screenWidth;
	float screenHeight;
	float id;
	void ReachDestination();
	float cloudSpeed;
	float pixelsPerSec;
	float time;
	int direction;
	bool isChangedDirection;
	Nests* behindNests;
	CCPoint startpoint;
	CCPoint endtpoint;
	int delta;

};


#endif
